package com.dong.boot.service;

import com.dong.boot.mapper.MenuMapper;
import com.dong.boot.model.Menu;
import com.dong.boot.utils.SystemConfigUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SystemConfigService {
    @Autowired
    private MenuMapper menuMapper;

    public List<Menu> getMenusByHrId(){
        return menuMapper.getMenusByHrId(SystemConfigUtil.currentUser().getId());
    }
}
